![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
The class describing the base class for beetle objects objects. More...
#include <bembidion_all.h>
Public Member Functions | |
Bembidion_Base (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) | |
Constructor. More... | |
void | ReInit (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) |
ReInit for object pool. More... | |
virtual void | BeginStep () |
BeginStep - empty. More... | |
virtual void | Step () |
Step - empty. More... | |
virtual void | EndStep () |
EndStep - empty. More... | |
virtual void | st_Die () |
Common state Die. More... | |
void | CopyMyself (int a_beetle) |
For experimental purposes. More... | |
void | CopyMyselfB (int a_beetle) |
For experimental purposes. More... | |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual int | WhatState () |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual bool | OnFarmEvent (FarmToDo) |
![]() | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Public Attributes | |
TTypesOfBeetleState | CurrentBState |
Current behavioural state. More... | |
Bembidion_Population_Manager * | m_OurPopulation |
Pointer to the population manager. More... | |
Additional Inherited Members | |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
int | m_CurrentStateNo |
The basic state number for all objects - '-1' indicates death. More... | |
bool | m_StepDone |
Indicates whether the iterative step code is done for this timestep. More... | |
The class describing the base class for beetle objects objects.
Bembidion_Base::Bembidion_Base | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
Bembidion_Population_Manager * | BPM | ||
) |
Constructor.
References CurrentBState, m_OurPopulation, and tobs_Initiation.
|
inlinevirtual |
BeginStep - empty.
Reimplemented from TAnimal.
Reimplemented in Bembidion_Adult, Bembidion_Pupae, Bembidion_Larvae, and Bembidion_Egg_List.
void Bembidion_Base::CopyMyself | ( | int | a_beetle | ) |
For experimental purposes.
Used for experimental manipulation of the population. This method clones a beetle a_beetles times at the same location as the original.
References struct_Bembidion::BPM, Bembidion_Population_Manager::CreateObjects(), struct_Bembidion::L, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, m_OurPopulation, struct_Bembidion::x, and struct_Bembidion::y.
Referenced by Bembidion_Population_Manager::Catastrophe().
void Bembidion_Base::CopyMyselfB | ( | int | a_beetle | ) |
For experimental purposes.
Used for experimental manipulation of the population. This method clones a beetle a_beetles times within +/- 32m of the individuals location using wrap around.
References struct_Bembidion::BPM, Bembidion_Population_Manager::CreateObjects(), struct_Bembidion::L, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, m_OurPopulation, random(), Population_Manager::SimH, Population_Manager::SimW, struct_Bembidion::x, and struct_Bembidion::y.
|
inlinevirtual |
void Bembidion_Base::ReInit | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
Bembidion_Population_Manager * | BPM | ||
) |
ReInit for object pool.
References CurrentBState, m_OurPopulation, TALMaSSObject::ReinitialiseObject(), and tobs_Initiation.
Referenced by Bembidion_Larvae::ReInit(), Bembidion_Pupae::ReInit(), and Bembidion_Adult::ReInit().
|
virtual |
Common state Die.
Do the housekeeping necessary to die as an object in the system.
References CurrentBState, Population_Manager::LamdaDeath(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulation, TALMaSSObject::m_StepDone, and tobs_Destroy.
Referenced by Bembidion_Adult::EndStep(), Bembidion_Adult::InternalPesticideHandlingAndResponse(), Bembidion_Larvae::Step(), Bembidion_Pupae::Step(), and Bembidion_Adult::Step().
|
inlinevirtual |
Step - empty.
Reimplemented from TAnimal.
Reimplemented in Bembidion_Adult, Bembidion_Pupae, Bembidion_Larvae, and Bembidion_Egg_List.
TTypesOfBeetleState Bembidion_Base::CurrentBState |
Current behavioural state.
Referenced by Bembidion_Larvae::BeginStep(), Bembidion_Pupae::BeginStep(), Bembidion_Adult::BeginStep(), Bembidion_Base(), Bembidion_Population_Manager::Catastrophe(), Bembidion_Larvae::KillThis(), Bembidion_Pupae::KillThis(), Bembidion_Larvae::OnFarmEvent(), Bembidion_Pupae::OnFarmEvent(), Bembidion_Adult::OnFarmEvent(), ReInit(), Bembidion_Adult::st_Aging(), st_Die(), Bembidion_Egg_List::Step(), Bembidion_Larvae::Step(), Bembidion_Pupae::Step(), and Bembidion_Adult::Step().
Bembidion_Population_Manager* Bembidion_Base::m_OurPopulation |
Pointer to the population manager.
Referenced by Bembidion_Base(), Bembidion_Adult::CanReproduce(), CopyMyself(), CopyMyselfB(), Bembidion_Adult::DDepMort(), Bembidion_Adult::MoveTo(), Bembidion_Adult::MoveTo_quality_assess(), Bembidion_Adult::MoveToAggr(), ReInit(), Bembidion_Adult::Reproduce(), Bembidion_Egg_List::st_Develop(), Bembidion_Larvae::st_Develop(), Bembidion_Pupae::st_Develop(), st_Die(), Bembidion_Pupae::st_Emerge(), Bembidion_Egg_List::st_Hatch(), Bembidion_Larvae::st_Pupate(), Bembidion_Larvae::Step(), and Bembidion_Adult::Step().